package com.his.registration.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.pojo
 * @Author: ZhangYing
 * @Date: 2023/7/1 14:05
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Register {
    private int id;
    private String caseNumber;//病历号
    private String realName;
    private String gender;
    private String cardNumber;//身份证号
    @DateTimeFormat(pattern = "yyyy-MM-dd") //日期格式转换对象 2023-06-29 14:24:28
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate birthdate;
    private int age;
    private String ageType;//年龄类型
    private String homeAddress;//家庭住址
    //其实再pojo的定义变量的过程中也可以指定日期格式！！！
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //日期格式转换对象 2023-06-29 14:24:28
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime visitDate;//看诊日期
    private String noon;//午别
    private int deptmentId;//挂号科室id
    private int employeeId;//挂号医生id
    private int registLevelId;//挂号级别id
    private int settleCategoryId;//结算类别id
    private String isBook;//病历是否要
    private String registMethod;//收费方式
    private double registMoney;//挂号金额
    private int visitState;//本次看诊状态 1：已挂号 2：医生接诊 3：看诊结束 4；退号

}
